/*
 * Copyright (C) 2009 Emweb bvba, Kessel-Lo, Belgium.
 *
 * See the LICENSE file for terms of use.
 */

#include <Wt/WServer>
#include <iostream>

#include "Home.h"

int main(int argc, char **argv)
{
  try {
	WServer server(argv[0]);

	server.setServerConfiguration(argc, argv, WTHTTP_CONFIGURATION);

	server.addEntryPoint(Application, createHomeApplication,
	  "", "/css/wt/favicon.ico");

	if (server.start()) {
	  WServer::waitForShutdown();
	  server.stop();
	}
  } catch (Wt::WServer::Exception& e) {
	std::cerr << e.what() << std::endl;
  } catch (std::exception &e) {
	std::cerr << "exception: " << e.what() << std::endl;
  }
}
